package com.ruoyi.project.business.salarydetail.mapper;

import com.ruoyi.project.business.salarydetail.entity.SalaryDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 薪资明细Mapper接口
 * 
 * @author ${author}
 * @date 2024-03-20
 */
public interface SalaryDetailMapper {
    /**
     * 查询薪资明细
     * 
     * @return 薪资明细
     */
    public SalaryDetail selectSalaryDetailById(Long id);

    /**
     * 查询薪资明细列表
     * 
     * @return 薪资明细集合
     */
    public List<SalaryDetail> selectSalaryDetailList(SalaryDetail salaryDetail);

    /**
     * 新增薪资明细
     * 
     * @return 结果
     */
    public int insertSalaryDetail(SalaryDetail salaryDetail);

    /**
     * 修改薪资明细
     * 
     * @return 结果
     */
    public int updateSalaryDetail(SalaryDetail salaryDetail);

    /**
     * 删除薪资明细
     * 
     * @return 结果
     */
    public int deleteSalaryDetailById(Long id);

    /**
     * 批量删除薪资明细
     * 
     * @return 结果
     */
    public int deleteSalaryDetailByIds(Long[] ids);

    void deleteMonthSalaryDetailByMonthSalaryId(@Param("monthSalaryId") Long monthSalaryId,
                                                @Param("tenantId") Long tenantId);
}
